Python Bookcamp: Exercises and Projects by Sarcar Vaskaran & Sarcar Vaskaran
Author:Sarcar, Vaskaran & Sarcar, Vaskaran [Sarcar, Vaskaran]
Language: eng
Format: epub
Published: 2021-01-24T00:00:00+00:00
print("The initial_list is :")
print(initial_list)
print("Calling the function make_double() now.")
make_double(initial_list)
print("The double_list is :")
print(double_list)
print("The initial_list at present :")
print(initial_list) #unchanged initial list
Output
Here is the output.
The initial_list is :
[1, 2, 3, 4, 5]
Calling the function make_double() now.
The double_list is :
[2, 4, 6, 8, 10]
The initial_list at present :
[1, 2, 3, 4, 5]
Demonstration 5
In the previous demonstration, you did not modify the original list. But in some cases, once you create a new list, you do not need to maintain the old/original list. But keep in mind that this can be risky.
The following demonstration shows you such an example, where you remove the elements from the initial list, make them double, and create a new list. So, in the end, when you print the original list, youâll see that the initial list is empty.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Coding Theory | Localization |
Logic | Object-Oriented Design |
Performance Optimization | Quality Control |
Reengineering | Robohelp |
Software Development | Software Reuse |
Structured Design | Testing |
Tools | UML |
Deep Learning with Python by François Chollet(12566)
Hello! Python by Anthony Briggs(9911)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9795)
The Mikado Method by Ola Ellnestam Daniel Brolund(9777)
Dependency Injection in .NET by Mark Seemann(9336)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8293)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7758)
Grails in Action by Glen Smith Peter Ledbrook(7693)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7032)
Microservices with Go by Alexander Shuiskov(6797)
Practical Design Patterns for Java Developers by Miroslav Wengner(6711)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6650)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Angular Projects - Third Edition by Aristeidis Bampakos(6059)
The Art of Crafting User Stories by The Art of Crafting User Stories(5589)
NetSuite for Consultants - Second Edition by Peter Ries(5524)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5328)
Kotlin in Action by Dmitry Jemerov(5062)
